import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class GUI {
    private Encrypter codDecod;
    
    //props
    private final int pixels = 400;
    //private final int position = 300;
    //components
    private JFrame frame;
    private JLabel instructions;
    private JTextField encode;
    private JTextField decode;
    private JTextField e;
    private JTextField p;
    private JTextField q;
    private JButton random;
    
    public GUI() {
        codDecod = new Encrypter();
        
        frame = new JFrame();
        instructions = new JLabel();
        encode = new JTextField();
        decode = new JTextField();
        e = new JTextField();
        p = new JTextField();
        q = new JTextField();
        random = new JButton();
        
        this.setProps();
        this.addStuff();
        frame.setVisible(true);
    }
    public void setProps() {
        frame.setSize(pixels, pixels);
        //frame.setDefaultCloseOperation(EXIT_ON_CLOSE);
        frame.setLayout(new FlowLayout());
    }
    public void addStuff() {
        frame.add(instructions);
        frame.add(e);
        frame.add(p);
        frame.add(q);
        frame.add(random);
        //random.setActionListener(ButtonListener);
        frame.add(encode);
        frame.add(decode);
    }
}

class ButtonListen implements ActionListener {
    public void actionPerformed(ActionEvent evt) {
    }
}

